<template>
  <div>
    <h2>我是弟弟,我开的车是哥哥的{{ car }}</h2>
  </div>
</template>

<script>
export default {
  name: "Didi",
  data() {
    return {
      car: "八手奥拓",
    };
  },
  mounted() {
    //初始化的时候给中介C绑定一个自定义事件$bus
    this.$bus.$on("getCar", this.getCar);
  },
  methods: {
    getCar(value) {
      this.car = value;
    },
  },
};
</script>

<style>
</style>